﻿<UserControl x:Class="ReporterControlLibrary.BrowseModelInstance"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:rcl="clr-namespace:ReporterControlLibrary" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition Height="35"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="81"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="114.5"/>
        </Grid.ColumnDefinitions>
        <TextBox x:Name="SearchObjectName_tb" TextWrapping="Wrap" Grid.Column="1" Margin="0" VerticalAlignment="Center"/>
        <TextBlock TextWrapping="Wrap" HorizontalAlignment="Right" Margin="0,0,5,0" VerticalAlignment="Center" Text="Object name" Style="{DynamicResource FormLabelStyle}"/>
        <Button x:Name="SearchMetaModel_bt" Content="Search" Grid.Column="2" Height="25" Margin="5,3.5"/>
        <TextBlock TextWrapping="Wrap" HorizontalAlignment="Right" Grid.Row="1" Text="Path" VerticalAlignment="Center" Margin="0,0,5,0" Style="{DynamicResource FormLabelStyle}"/>
        <RichTextBox x:Name="PathBox" VerticalAlignment="Center" Grid.Column="1" Margin="0" Grid.Row="1">
            <FlowDocument>
                <Paragraph>
                    <Run Text=""/>
                </Paragraph>
            </FlowDocument>
        </RichTextBox>        
        <Button x:Name="CopyObjecPathToClipboard_bt" Content="Copy to clipboard" Grid.Column="2" Grid.Row="1" Height="25" Margin="5,2.775,5,2.225"/>
        <rcl:InstanceTree x:Name="EvalModelTree" DataContext="{Binding Path=Instances}" Grid.Row="2" d:LayoutOverrides="Width, Height" Grid.ColumnSpan="3" TreeBackground="{DynamicResource ControlDarkOpaqueBrushKey}"/>
    </Grid>
</UserControl>
